import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index.vue'
import main from '@/pages/main.vue'
import course from '@/pages/course.vue'
import contact from '@/pages/contact.vue'
import down from '@/pages/down.vue'

Vue.use(Router)

export default new Router({
  history:true,
  linkActiveClass:'active',
  linkExactActiveClass:'active',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children:[
        {
          path:'/',
          component: main
        },
        {
          path:'/course',
          component: course
        },
        {
          path:'/contact',
          component: contact
        },{
          path:'/down',
          component: down
        }
      ]
    }
  ]
})
